class Wai:
    def __init__(self,x=0,y=0,color='black'):
        self.x = x
        self.y = y
        self.color =color
    def haijun(self,x,y):
        self.x = x
        self.y = y
        print('鱼雷。。。。。')
        self.info()
    def info(self):
        print('定位目标:(%d,%d)' % (self.x,self.y))
    def gongji(self):
        print("导弹发射！")
class FlyWai(Wai):
    def gongji(self):
        print("飞船拦截！")
    def fly(self,x,y):
        print("火箭军...")
        self.x = x
        self.y = y
        self.info()
flyWai = FlyWai(color='red')
flyWai.haijun(100,200)
flyWai.fly(12,15)
flyWai.gongji()